package speed2010.simulacao;
import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

import speed2010.simulacao.camadaDHT.*;
import speed2010.simulacao.camadaPI_PD.PD01_m4_2178_to_PS1;
import speed2010.simulacao.camadaPI_PD.PD02_m4_2278_to_PS1;
import speed2010.simulacao.camadaPI_PD.PD03_m4_2378_to_PS1;
import speed2010.simulacao.camadaPI_PD.PD04_m4_2478_to_PS1;
import speed2010.util.GerenciadorClusterConsultados;

public class SimulacaoDoutorado {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			new NServidorDeNomes_m1_22222().iniciaSN();
			Thread.sleep(500);
			new PS01_m2_2000_EntryPoint().iniciaPS();
			Thread.sleep(500);
			LocateRegistry.createRegistry(1099);
			Naming.rebind("rmi://localhost:1099/Gerenciador", new GerenciadorClusterConsultados());
						
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
